package zzx;

//20170901 70分

import java.util.Scanner;

public class BuySauce {
    public static void main(String[] arg) {
        Scanner scanner = new Scanner(System.in);
        int p, n = 0;
        p = scanner.nextInt();
        do {
            if (p < 30) {
                n += p / 10;
                break;
            } else if (p < 50) {
                n += p / 10 + 1;
                break;
            } else if (p < 80) {
                n += p / 10 + 2;
                break;
            }
            p = p - 80;
            n = n + 11;
        } while (true);
        System.out.println(n);
    }
}

